<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="csrf-token" content="{{ csrf_token() }}">
@foreach($config as $v)
<meta name="description" content="{{ $v->description }}" />
<meta name="keywords" content="{{ $v->keys }}" />
<title>{{ $v->title }}</title>
@endforeach
<link href="{{asset('css/base.css')}}" rel="stylesheet" type="text/css" />
<link href="{{asset('css/index.css')}}" rel="stylesheet" type="text/css" />
<link href="{{asset('css/order.css')}}" rel="stylesheet" type="text/css" />
<link href="{{asset('css/category.css')}}" rel="stylesheet" type="text/css"/>
<link href="{{asset('css/personal.css')}}" rel="stylesheet" type="text/css" />
<link href="{{asset('css/userdetail.css')}}" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{{asset('js/jquery-1.2.6.pack.js')}}"></script>
<script type="text/javascript" src="{{asset('js/public.js')}}"></script>
<script type="text/javascript" src='{{ asset("ajax/jquery-1.8.3.min.js") }}'></script>

</head>
<body>
<div class="side_con">
    <div class="l_m">
    @if(session()->get('homeuser'))
        <div class="f_l l_m_l">
            您好,尊贵的会员！{{ session()->get('homeuser')->username }}<a href="{{ url('home/logout') }}" class="huise">[退出]</a>
        </div><!--l_m_l end-->
    @endif
    @if(!session()->get('homeuser'))
        <div class="f_l l_m_l">
            您好，欢迎来麦路客商城！<a href="{{ url('home/login') }}" class="huise">[登录]</a><a href="{{ url('home/zhuce') }}" class="huise">[免费注册]</a>
        </div><!--l_m_l end-->
    @endif
        <div class="f_r l_m_r">
            <ul class="clearfix">
                <li class="collect"><a onclick="bookmark();" href="javascript:void(0);">加入收藏</a></li>
                <li><a href="javascript:void(0);">帮助中心</a></li>
                <li><a href="my-order.html" class="yellow">我的订单</a></li>
                <li class="my-mesaer">
                    <a href="my-mesaer.html">我的麦路客<span class="arrow"></span></a>
                    <ul id="my-list">
                        <li><a href="{{url('home1/space')}}">我的空间</a></li>
                        <li><a href="{{url('home1/info')}}">我的信息</a></li>
						<li><a href="">我的订单</a></li>
						<li><a href="">我的收藏</a></li>
                    </ul>
                </li>
            </ul>
        </div><!--l_m_r end-->
    </div><!--l_m end-->
</div><!--side_con end-->
<div class="header container">
    <div class="l_s">
    @foreach($config as $v)
        <a title="网上购物麦路客商城" class="f_l logo" href="index.html"><img src="{{ asset('uploads').'/'.$v->logo }}" alt="网上购物麦路客商城" width="152" height="71" /></a>
    @endforeach
        <div class="f_l l_s_l">
            <form method="post" action="" id="ui_element">
                <div class="f_l input_l"><input type="text" id="birds" class="sb_input text" value="" autocomplete="off" onkeydown="javascript:if(event.keyCode==13) search('key');"><ul id="tieslide"></ul></div>
                <div class="f_l input_r"><button type="submit" onclick="search('key');return false;">搜商品</button></div>
            </form>
        </div><!--l_s_l end-->
        <ul class="f_r l_s_r">
            <li class="icon_01"><a title="货到付款" href="help/payment.html">货到付款</a></li><li class="icon_02"><a title="支付宝支付" href="help/payment.html">支付宝支付</a></li><li class="icon_03"><a title="7天退换" href="help/policy.html">7天退换</a></li><li class="icon_04"><a title="提供发票" href="help/invoice-system.html">提供发票</a></li>
        </ul><!--l_s_r end-->
    </div><!--l_s end-->
</div><!--header end-->


<div class="content container">
    <div class="area_l con_l">
        <div class="product-sort">
            <h2>商品分类</h2>
            <div class="sort-con">
                <div class="sort-list">
                    @foreach($list as $v)
                    @if($v->pid==0)
                    <dl>
                        <dt class="current"><span class="f_l arrow"></span><a href="javascript:void(0);" class="f_l">{{ $v->name }}</a></dt>
                        <dd>
                            @foreach($list as $k)
                            @if($k->pid==$v->id)
                            <div class="did">
                            <a class="current" id="{{ $k->id }}" href="javascript:void(0);"><span>·</span>{{ $k->name }}(<b class="yellow">★</b>)</a>
                            </div>
                            @endif
                            @endforeach
                        </dd>
                    </dl>
                    @endif
                    @endforeach
                </div>
            </div><!--sort-con end-->
            <div class="sort-btn"></div>
        </div><!--product-sort end-->

        <div class="blank10"></div>

        <div http://www.zhaowei.com/home/type/2#class="liulan">
            <div class="liulan_t"><h3 class="f_l">你最近浏览的商品</h3><a class="f_r clearRec" href="javascript:void(0)">清空</a></div>
            <div class="liulan_product">
                <ul>
                    <li class="clearfix">
                        <a href="#"><img src="images/liuliang/p1.jpg" class="p_img" alt="都市年华缤纷羽绒服" width="68" height="68" /></a>
                        <span><a href="#" class="red">都市年华缤纷羽绒服</a></span><span class="yellow">￥299.00</span><span>EUROMODA</span>
                    </li>
                    <li class="clearfix">
                        <a href="#"><img src="images/liuliang/p1.jpg" class="p_img" alt="都市年华缤纷羽绒服" width="68" height="68" /></a>
                        <span><a href="#" class="red">都市年华缤纷羽绒服</a></span><span class="yellow">￥299.00</span><span>EUROMODA</span>
                    </li>
                </ul>
            </div>
        </div><!--liulan end-->
    </div><!--left end-->
    <script type="text/javascript">
            var url="{{ url('home/aja') }}";
            $(".did a").click(function(){
                var id = $(this).attr('id');
                // alert(id);
                $.ajax({
                url:url,
                async:true,   //是否异步
                type:"post",   //请求方式
                data:{id:id},
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                    },
               dataType:"json",
                error:function()
                {
                    alert("ajax请求失败");
                },
                success:function(data)
                {
                    $("#ulid li").remove();
                    var product = eval(data);
                    for(var i=0;i<product.length;i++){
                       	$("#ulid").append(
                   	    '<li><a class="p_photo" title="" href="/home/goods/'+product[i].id+'"><img alt="'+product[i].subname+
                        '" src="/uploads/'+product[i].pic+'" width="150" height="205" /></a><div class="p_name"><a href="/home/goods/'+product[i].id+'">'+product[i].goodname+
                        '</a><div class="p_price"><del title="市场价">¥80.00元</del><strong title="麦路客价">¥'+product[i].price+
                        '元</strong></div><div class="preview"><p class="pic">images/'+product[i].pic+'</p></div></li>'
                       	)
                    }
                }
                });
            })

        </script>
    <div class="area_r con_r">
        <div class="filter-last"><div></div></div>

        <div class="blank10"></div>

        <div class="category">

            <div class="StyleListProduct">
                <ul class="clearfix" id="ulid">
                    @foreach($show as $v)
                    <li>
						<a class="p_photo" title="{{$v->subname}}" href="{{url('/home/goods'.'/'.$v->id)}}"><img alt="{{$v->goodname}}" src="{{asset('/uploads'.'/'.$v->pic)}}" width="150" height="205" class="load_img pic" /></a>
						<div class="p_name"><a href="{{url('/home/goods'.'/'.$v->id)}}">雅镂空条纹针织衫</a></div>
						<div class="p_price"><del title="市场价">¥80.00元</del><strong title="麦路客价">¥{{$v->price}}元</strong></div>
						<div class="p_safe"><span class="blue">满意度：5.0分</span><span class="icon zengpin" title="赠品"></span></div>
					</li>
                    @endforeach
                </ul>
            </div><!--StyleListProduct end-->

            <div class="pop_arrow" id="pop_ico" style="display:none"></div>
            <div id="pop_detail" style="position:absolute"></div>

            <div class="bottom_page">
                <div class="page_list">
                </div><!--page_list end-->
            </div><!--bottom_page end-->
        </div><!--category end-->
    </div><!--right end-->
    <div class="clear mb-10"></div>
</div><!--content end-->

<div class="footer container">
    <div class="service">
        <div class="cat_bg"></div>
        <div class="help_list clearfix">
            <dl>
                <dt>新手指南</dt>
                <dd><a href="help/index.html" target="_blank"><span>购物流程</span></a></dd>
                <dd><a href="help/account.html" target="_blank"><span>我的麦路客</span></a></dd>
                <dd><a href="help/common.html" target="_blank"><span>常见问题</span></a></dd>
                <dd><a href="register.html" target="_blank"><span>注册用户</span></a></dd>
                <dd><a href="forgot-password.html" target="_blank"><span>找回密码</span></a></dd>
            </dl>
            <dl>
                <dt>订单问题</dt>
                <dd><a href="help/order-status.html" target="_blank">订单状态</a></dd>
                <dd><a href="help/cancel-order.html" target="_blank">取消订单</a></dd>
                <dd><a href="help/not-order.html" target="_blank">未达订单</a></dd>
            </dl>
            <dl>
                <dt>会员积分</dt>
                <dd><a href="help/integral-rules.html" target="_blank">积分规则</a></dd>
                <dd><a href="help/integral.html" target="_blank">积分问题</a></dd>
                <dd><a href="help/exchange-integral.html" target="_blank">积分兑换</a></dd>
            </dl>
            <dl>
                <dt>如何付款/退款</dt>
                <dd><a href="help/payment.html" target="_blank">支付方式</a></dd>
                <dd><a href="help/wait-pay.html" target="_blank">支付等待</a></dd>
                <dd><a href="help/pay-issue.html" target="_blank">支付问题</a></dd>
                <dd><a href="help/refund.html" target="_blank">办理退款</a></dd>
                <dd><a href="help/invoice-system.html" target="_blank">发票制度</a></dd>
            </dl>t8
            <dl>
                <dt>配送和收费</dt>
                <dd><a href="help/time-range.html" target="_blank">配送时间</a></dd>
                <dd><a href="help/delivery-time.html" target="_blank">送达时间</a></dd>
                <dd><a href="help/inspection-sign.html" target="_blank">验货与签收</a></dd>
                <dd><a href="help/express.html" target="_blank">快递配送和收费</a></dd>
                <dd><a href="help/ems.html" target="_blank">EMS配送和收费</a></dd>
            </dl>
            <dl>
                <dt>售后服务</dt>
                <dd><a href="help/policy.html" target="_blank">退换货政策</a></dd>
                <dd><a href="help/apply-goods.html" target="_blank">如何办理退换货</a></dd>
            </dl>
        </div>
    </div><!--service end-->
    <div class="copyright">
        <a href="help/about.html" target="_blank">关于麦路客</a><span>|</span><a href="help/contact.html" target="_blank">联系麦路客</a><span>|</span><a href="help/job.html" target="_blank">加入麦路客</a><span>|</span><a href="sort.html" target="_blank">网站地图</a><span>|</span><a href="help/complainting.html" target="_blank">投诉与建议</a><span>|</span><a href="help/links.html" target="_blank">友情链接</a><br />
        Copyright&nbsp;&nbsp;©&nbsp;&nbsp;2009-2011&nbsp;&nbsp;<a title="麦路客商城" href="http://www.mailuke.com/">www.mailuke.com</a>&nbsp;&nbsp;麦路客商城版权所有<span>|</span><a href="http://www.miibeian.gov.cn/" target="_blank">沪ICP备10031526号</a><br />
        <a href="#" target="_blank"><img src="images/beian.gif" width="128" height="47" alt="经营性网站备案中心" /></a><a href="#" target="_blank"><img src="images/trustA.gif" width="119" height="47" alt="A级-信用企业" /></a><a href="#" target="_blank"><img src="images/alipay.gif" width="123" height="40" alt="支付宝-特约商家" /></a>
    </div><!--copyright end-->
</div><!--footer end-->

<!-- plugin -->
<script type="text/javascript" src="{{asset('js/lib.js')}}"></script>
<!-- index -->
<script type="text/javascript" src="{{asset('js/index.js')}}"></script>

<script type="text/javascript" src="{{asset('js/Validate.js')}}"></script>
<script type="text/javascript" src="{{asset('js/Validate.personal.js')}}"></script>

<script type="text/javascript" src="{{asset('js/thickbox.js')}}"></script>
<script type="text/javascript" src="{{asset('js/category.js')}}"></script>
</body>
</html>
